package com.zryc.test;

import com.zryc.shop.util.ResponseResult;
import org.apache.rocketmq.spring.core.RocketMQReplyListener;
import org.springframework.stereotype.Component;

@Component
public class OneRocketmqReplyListener implements RocketMQReplyListener<String, ResponseResult> {
    @Override
    public ResponseResult onMessage(String message) {
        System.out.println(message);
        return new ResponseResult(200, "好呀！好呀！");
    }
}
